package com.example.mybusschedule.data

import kotlinx.coroutines.flow.Flow
import javax.inject.Inject

class OfflineBusScheduleRepository @Inject constructor(private val busScheduleDao: BusScheduleDao) : BusScheduleRepository {
    override fun getAllBusSchedules(): Flow<List<BusSchedule>> = busScheduleDao.getAll()

    override fun getBusScheduleByStopName(stopName: String): Flow<List<BusSchedule>> = busScheduleDao.getByStopName(stopName)
}